/**
 * Created by JetBrains WebStorm.
 * User: Liucw
 * Date: 12-8-30
 * Time: 上午12:20
 * To change this template use File | Settings | File Templates.
 */

/**
 * 获取[min,max]随机数
 * @param min
 * @param max
 */
function getRandomNumber(min,max){
    return min + Math.floor(Math.random()*(max - min +1));
}

/**
 * 获取一种随机的颜色
 */
function getRandomColor(){
    var arrHex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"];
    var strHex = "#";
    var index;
    for (var i = 0; i < 6; i++) {
        index = Math.round(Math.random() * 15);
        strHex += arrHex[index];
    }
    return strHex;
}